package day14;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class homework00004 {
    private static boolean flag;
   private static final Lock lock=new ReentrantLock();

    public static boolean isFlag() {
        return flag;
    }
    public static Lock getlock() {
        return lock;
    }

    public static void setFlag(boolean flag) {
        homework00004.flag = flag;
    }
    public homework00004(boolean flag) {
        this.flag = flag;
    }
    public homework00004() {
        new homework00004(false);
    }
}
